<template>
  <div class="userBox">
    <div class="footer_wrap">
      <router-link to="/UserView/RandomDraw">抽奖</router-link>
      <router-link to="/UserView/WinRecord">抽奖记录</router-link>
      <router-link to="/UserView/GiftDesc">奖品信息</router-link>
    </div>
    <div class="top">
      <!-- 路由出口 → 匹配的组件所展示的位置 -->
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
    export default {
        name: "UserView"
    }
</script>

<style scoped>
  /* 导航 */
  .footer_wrap {
    position: relative;
    left: 0;
    top: 0;
    display: flex;
    width: 100%;
    text-align: center;
    background-color: #333;
    color: #ccc;
  }

  .footer_wrap a {
    flex: 1;
    text-decoration: none;
    padding: 20px 0;
    line-height: 20px;
    background-color: #333;
    color: #ccc;
    border: 1px solid black;
  }

  .footer_wrap a.router-link-active {
    background-color: purple;
  }

  .footer_wrap a:hover {
    background-color: #555;
  }
</style>